﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
using SilverlightDesktop.Controls;
using VAdvantage.Utility;
using VAdvantage.Apps;

namespace VAdvantage.KnowledgeBase
{
    public partial class WelcomePage : Form
    {
        public WelcomePage()
        {
            InitializeComponent();
           this.FormStyle = SilverlightDesktop.Common.FormStyle.None;
           this.ShowInTaskBar = false;
           this.ResizeMode = SilverlightDesktop.Common.ResizeMode.NoResize;
           this.FormBorderThickness = new Thickness(0);
           this.FormBorderColor = Envs.GetColorFromHexString("B7C8D3");

           Envs.RegisterWindowForm(this);


           if (this.Explorer.ActualWidth > 320)
           {
               this.Width = this.Explorer.ActualWidth - 320;
               this.Left = 160;
           }
           else
           {
               this.Width = this.Explorer.ActualWidth;
           }

           if (this.Explorer.ActualHeight > 55)
           {
               this.Height = this.Explorer.ActualHeight - 20 - 35;
               this.Top = 10;
           }
           else
           {
               this.Height = this.Explorer.ActualHeight;
           }


           welcomeScreen.Init(this);
        }


        

       
       

    }
}
